package mj.scott.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import mj.scott.pojo.dto.DishDTO;
import mj.scott.pojo.entity.Dish;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 菜品 Mapper 接口
 * @author Scott
 * @since 2025-08-15
 */
public interface DishMapper extends BaseMapper<Dish> {
    Page<DishDTO> selectByCategoryId(
            Page<DishDTO> page,
            @Param("categoryId") Long categoryId,
            @Param("name") String name
    );
}
